package org.example;

public class Student {
    // 属性
    private String name;
    private int age;
    private String gender;
    //默认|无参构造器

    public Student() {}

    //有参构造器

    public Student(String name, int age, String gender) {
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    //get|set方法

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public int getAge() {
        return age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
